package com.cdck.safe.dete.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cdck.safe.dete.model.entity.StudentUnionUser;
import com.cdck.safe.dete.model.query.BaseKeywordsQuery;
import com.cdck.safe.dete.model.query.StudentUnionUserQuery;
import com.cdck.safe.dete.model.vo.StudentUnionUserVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * (StudentUnionUser)表服务接口
 *
 * @author wp
 * @since 2024-02-26 23:02:29
 */
public interface StudentUnionUserService extends IService<StudentUnionUser> {


    /**
     * 分页列表
     *
     * @return
     */
    IPage<StudentUnionUserVo> queryByPage(StudentUnionUserQuery queryParams);


    /**
     * 获取表单数据
     *
     * @param
     * @return
     */
    StudentUnionUser getStudentUnionUserFormData(Long unionId, Long userId);

    /**
     * 新增数据
     *
     * @param studentUnionUser StudentUnionUser对象
     * @return
     */
    boolean saveStudentUnionUser (StudentUnionUser studentUnionUser);

   /**
     * 修改数据
     *
     * @param id   id
     * @paramstudentUnionUser StudentUnionUser对象
     * @return
     */
    boolean updateStudentUnionUser(Long id, StudentUnionUser studentUnionUser);

    /**
     * 删除数据
     *
     * @param idsStr id,多个以英文逗号(,)分割
     * @return
     */
    boolean deleteStudentUnionUsers(String idsStr);

    boolean updateStatusUnionUser(Long id);
}
